package com.tyj.movie.mapper;

import com.tyj.movie.entity.MovieTheatreOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tyj.movie.vo.OrderPayVo;
import com.tyj.movie.vo.OrderVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author tyj
 * @since 2021-06-28
 */
public interface MovieTheatreOrderMapper extends BaseMapper<MovieTheatreOrder> {

    OrderPayVo queryOrderPayVo(String orderSn);

    List<OrderVo> queryUserOrderByUserId(Long userId);

    void updateOrderState(@Param("id") Long id, @Param("code") Integer code);
}
